package com.tencent.ncnnyolox.utils;

import android.graphics.RectF;

/**
 * <pre>
 *     author : yh
 *     e-mail : xxx@xx
 *     time   : 2023/11/21
 *     desc   :
 * </pre>
 */
public class Recognition {

   private String label;
   private Float probability;
   private RectF rectF;

   public Recognition(String label, Float probability, RectF rectF) {
      this.label = label;
      this.probability = probability;
      this.rectF = rectF;
   }

   public String getLabel() {
      return label;
   }

   public void setLabel(String label) {
      this.label = label;
   }

   public Float getProbability() {
      return probability;
   }

   public void setProbability(Float probability) {
      this.probability = probability;
   }

   public RectF getRectF() {
      return rectF;
   }

   public void setRectF(RectF rectF) {
      this.rectF = rectF;
   }

   @Override
   public String toString() {
      return "Recognition{" +
              "label='" + label + '\'' +
              ", probability=" + probability +
              ", rectF=" + rectF +
              '}';
   }
}
